//
//  PwSucceedView.m
//  BalanceCar
//
//  Created by 郑信鸿 on 17/6/28.
//  Copyright © 2017年 郑信鸿. All rights reserved.
//

#import "PwSucceedView.h"

@implementation PwSucceedView

- (instancetype)init{
    
    if (self = [super init]) {
        
        [self estbalishSubViews];
    }
    
    return self;
}

- (void)estbalishSubViews{
    UILabel *label = [[UILabel alloc] init];
    label.text = @"输入4位锁车密码";
    label.font = [UIFont systemFontOfSize:17];
    label.textColor = [UIColor colorFromHexCode:@"#666666"];
    [self addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.centerX.mas_offset(0);
        make.top.mas_offset(30);
        
    }];
    UILabel *label2 = [[UILabel alloc] init];
    label2.text = @"锁车密码设置成功";
    label2.font = [UIFont systemFontOfSize:15];
    label2.textColor = [UIColor colorFromHexCode:@"#17c549"];
    [self addSubview:label2];
    //40x40
    UIImageView *iconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tips_suc"]];
    [self addSubview:iconView];
    [label2 mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.centerY.mas_equalTo(label.mas_bottom).offset(40);
        make.centerX.mas_offset(25);
    }];
    [iconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(label2.mas_centerY).offset(0);
        make.right.mas_equalTo(label2.mas_left).offset(-10);
        
    }];
}

@end
